import request from '@/utils/request'

// 查询车辆行走坐标列表
export function listTbEquTrain(query) {
  return request({
    url: '/work/TbEquTrain/list',
    method: 'get',
    params: query
  })
}

// 查询车辆行走坐标详细
export function getTbEquTrain(id) {
  console.log(id)
  return request({
    url: '/work/TbEquTrain/getById?id='+id,
    method: 'get'
  })
}

// 新增/修改车辆行走坐标
export function saveTbEquTrain(data) {
  return request({
    url: '/work/TbEquTrain/save',
    method: 'post',
    data: data
  })
}

// 删除车辆行走坐标
export function delTbEquTrain(id) {
  return request({
    url: '/work/TbEquTrain/delIds?ids='+id,
    method: 'post'
  })
}
